package com.huawei.hms.support.api.pay;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.pay.ProductDetailResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiPayApiImpl$g extends PendingResultImpl<ProductDetailResult, ProductDetailResp> {
    public final /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        ProductDetailResp productDetailResp = (ProductDetailResp) iMessageEntity;
        if (productDetailResp == null) {
            HMSLog.e("HuaweiPayApiImpl", "produuctDetailResp is null");
            return null;
        }
        HMSLog.i("HuaweiPayApiImpl", "produuctDetail resp :" + productDetailResp.returnCode);
        Result productDetailResult = new ProductDetailResult();
        productDetailResult.setStatus(new Status(productDetailResp.returnCode, productDetailResp.errMsg));
        productDetailResult.setFailList(productDetailResp.getFailList());
        productDetailResult.setProductList(productDetailResp.getProductList());
        productDetailResult.setRequestId(productDetailResp.getRequestId());
        return productDetailResult;
    }

    public HuaweiPayApiImpl$g(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }
}
